<?php
session_start();
include_once "../modele/DB.php";
?>
<!DOCTYPE html>

<html>
<head>
	<link rel=StyleSheet href="css/bootstrap.css" type="text/css">
	<link rel=StyleSheet href="css/stylesheet.css" type="text/css">
	<link rel=StyleSheet href="css/stylesheet-cart.css" type="text/css">
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
	
	<meta content="en-us" http-equiv="Content-Language" />
	<title>Gamers Pizza</title>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
</head>
<body>
	<div id="banner">
		<div class="row-fluid">
			<img src="../vue/img/pacman.png" style="margin-top: 5px; margin-left: 5px;"/>
			Gamers pizza
		</div>
	</div>
	<div id="menu">
		<?php include "menu_page.php"?>
	</div>
	<div id="pagePrincipale">
	<table class="content">
	<tr>
		<td>
		<div id="pageGauche">
			<div id="page">
				<?php
				if (ISSET($_POST["page"])) {
						include $_POST["page"].".php";
					} else {
						include "welcome_page.php";
					}
					?>
			</div>
		</div>
		</td>
			<?php
			if (ISSET($_POST["page"])) {
				if ($_POST["page"] != "login_page" && $_POST["page"] != "welcome_page") {
					echo "<td style=\"width:30%\"><div id=\"pageDroite\">
					<div id=\"commande\">";
					include "cart_page.php";				
					echo "</div>
					</div></td>";
					}
				}
			?>
	</tr></table>
	</div>
</body>
<script src="js/bootstrap.js"></script>

</html>